package com.xiaodou.mjf.infrastructure.common.utils;

import org.apache.commons.lang3.RandomUtils;

/**
 * 生成ID
 * @author Rocky
 *
 */
public class CodeGenerator {

	/**
	 * 生成唯一UUID键
	 * @return
	 */
	public static String UUID(){
		return java.util.UUID.randomUUID().toString().replace("-", "");
	}

    public static String generateCode(){
        return String.valueOf(RandomUtils.nextLong(100000,999999));
    }

	public static void main(String[] args) {
		System.out.println(UUID());
	}
}
